﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class shop_KQZF_show : System.Web.UI.Page
{
    public string orderId;
    public double allamonut;
    protected void Page_Load(object sender, EventArgs e)
    {
       
        if (!IsPostBack)
        {
            if (Request["msg"] != null && Request["orderId"] != null)
            {
                var ordernumber = Request["orderId"];
                pay.BLL.OrderBLL orderbll = new pay.BLL.OrderBLL();
                ordernumber = ordernumber.Split(',')[0];
                pay.Entity.Web_Order orders = orderbll.GetOrderByOrderNumber(ordernumber);
                orderId = ordernumber;
                allamonut = Convert.ToDouble(orders.Allmoney);
                Lab_orderId.Text = orderId.ToString().Trim();
                Lab_orderAmount.Text = allamonut.ToString().Trim();
                string msg = Request["msg"].ToString();
                switch (msg)
                {
                    case "false":
                        Lab_msg.Text = "支付出错";
                        break;
                    case "error":
                        Lab_msg.Text = "支付失败";
                        break;
                    default:
                        Lab_msg.Text = "订单更新失败";
                        break;
                }


            }
            else
            {
                return;
            
            }



        }
    }
}
